package com.ciwong.epaper.application;

import com.ciwong.epaper.util.EConstants;

/**
 * Created by neo on 2016/7/8.
 * 对应后台定义的常量表
 */
public interface EpaperConstant {

    String H5_2_9_HOST = EConstants.getRunEnvUrl_H5_2_9();

    String H5_2_10_HOST = EConstants.getRunEnvUrl_H5_2_10();

    String H5_WECHAT_HOST = EConstants.getRunEnvUrl_H5_Wechat();

    String H5_PK_HOST = "https://pk.ciwong.com/";

    String URL_WORD_PK_H5 = H5_PK_HOST + "index.html?";

    String URL_LSW_DETAILS = H5_2_9_HOST + "ls/index.html#";

    String URL_LSW_SHARE = H5_2_9_HOST + "lsShare/index.html#";

    String URL_READING_REPEAD = H5_2_9_HOST + "reading/index.html#";
    /**
     * 学习记录
     */
    String URL_LEARN_RECORD_H5 = H5_2_9_HOST + "learningRecord/index.html#";

    /**
     * 排行榜
     */
    String URL_RANKING_H5 = H5_2_9_HOST + "ranking/index.html#";

    /**
     * 排行榜
     */
    String URL_H5_TIME_NEWS = H5_2_9_HOST + "news/index.html#";

    /**
     * 排行榜
     */
    String URL_H5_MINE_GRADE = H5_2_9_HOST + "statistical/index.html?";
    /**
     * 我的积分
     */
    String URL_H5_MINE_POINT = H5_2_9_HOST + "integral/index.html?";
    /**
     * 积分规则
     */
    String URL_H5_MINE_RULE = H5_2_9_HOST + "integral/rules.html?";
    /**
     * 积分指南
     */
    String URL_H5_MINE_GUIDE = H5_2_9_HOST + "integral/guide.html?";
    /**
     * 资源中心
     */
    String URL_H5_RECOURSE_CENTER = H5_2_9_HOST + "source/index.html?";

    /**
     * 发现类目列表
     */
    String URL_H5_FIND_LIST_CENTER = H5_2_9_HOST + "findList/index.html?";
    /**
     * 发现详情
     */
    String URL_H5_FIND_DETAIL_CENTER = H5_2_9_HOST + "findDetail/index.html?";

    /**
     * 配音详情
     */
    String URL_H5_DUB_VIDEO_RECORD_DETAIL = H5_2_9_HOST + "dubDetail/index.html?";
    /**
     * 习习向上家长端使用说明
     */
    String URL_H5_BANNER = "https://mp.weixin.qq.com/s/5q_j1KHwsFsuAKvciGDyeA";
    /**
     * 发现
     */
    String URL_H5_FIND = H5_2_9_HOST + "integral/discovery.html?";

    String URL_H5_DICATION = H5_2_9_HOST + "dictation/index.html?";
    //我的勋章页面

    String URL_H5_MEDAL = H5_2_9_HOST + "medal/index.html?";

    String URL_H5_LISTEN_SPEAK_TOPIC = H5_2_9_HOST + "ls/singleQuestionPreview.html?";

    String URL_H5_ANSWER_ONLINE = H5_2_9_HOST + "onlinePaper/singleQuestionPreview.html?";

    String URL_H5_INTERACTIVE_TUTORIAL = H5_2_9_HOST + "onlinePaper/itPreview.html#";

    //听说模考跳转选题
    String URL_H5_LISTEN_SPEAK_BIG_QUESTION = H5_2_10_HOST + "ls/examPreviewSelect.html?";
    //在线作答跳转选题
    String URL_H5_ONLINE_PAGE_BIG_QUESTION = H5_2_10_HOST + "onlinePaper/questionPreviewSelect.html?";
    //跳转到布置打卡作业
    String URL_H5_JUMP_TO_DK_WORK = H5_WECHAT_HOST + "#/signHomework?";
    //跳转到布置打卡作业 正式环境
    //String URL_H5_JUMP_TO_DK_WORK = H5_WECHAT_HOST + "#/signHomework?";
    String URL_H5_JUMP_TO_DK_DETAILS = H5_WECHAT_HOST + "#/signHomeworkDetail?";

    //跳转班级成绩 练习模式 考试模式
    String URL_H5_CLASS_GRADES = H5_WECHAT_HOST + "?#/workReport/";
    //跳转班级成绩 机房模式
    String URL_H5_CLASS_GRADES_COMPUTER = H5_WECHAT_HOST + "?#/workReportComputerRoom/";
    //课后作业详情
    String URL_H5_STUDENT_GRADES = H5_WECHAT_HOST + "?#/finisher/";
    //机房考试详情
    String URL_H5_STUDENT_GRADES_COMPUTER = H5_WECHAT_HOST + "?#/finisherComputerRoom/";
    //课堂作业详情
    String URL_H5_CLASS_WORK_GRADES = H5_2_9_HOST + "/report/classTeach/index.html?";
    // 在线作答学习记录
    String URL_ONLINE_PAPER_DETAIL_H5 = H5_2_9_HOST + "onlinePaper/detail.html#";
    String URL_INTERACTIVE_TUTORIAL_DETAIL_H5 = H5_2_9_HOST + "onlinePaper/itDetail.html#";
    //机房考试作业报告
    String URL_COMPUTER_ROOM_TEST_REPORT_H5 = H5_2_9_HOST + "report/exam/collectReport.html?";
    //课堂讲练作业报告
    String URL_CLASSROOM_TEACHING_REPORT_H5 = H5_2_9_HOST + "report/classTeach/collectReport.html?";
    //课后作业报告
    String URL_HOMEWORK_REPORT_H5 = H5_2_9_HOST + "report/afterClass/collectReport.html?";
    //个人学情报告
    String URL_STUDENT_WORK_REPORT_H5 = H5_2_9_HOST + "statisticalSelect/index.html?";
    //班级作业报告
    String URL_CLASS_WORK_REPORT_H5 = H5_2_9_HOST + "classReport/index.html?";

    /**
     * 用户角色，对应表1.5
     */
    //无
    public static final int USER_ROLE_UNKNOW = 0;
    //学生
    public static final int USER_ROLE_STUDENT = 1;
    //老师
    public static final int USER_ROLE_TEACHER = 2;
    //学生和老师
    public static final int USER_ROLE_STUDENT_AND_TEACHER = 3;
    //家长
    public static final int USER_ROLE_PARENT = 4;

    //学生和家长
    public static final int USER_ROLE_STUDENT_AND_PARENT = 5;

    //老师和家长
    public static final int USER_ROLE_TEACHER_AND_PARENT = 6;
    //学生和老师和家长
    public static final int USER_ROLE_STUDENT_TEACHER_AND_PARENT = 7;


    public static final int REQ_CODE_EXPIRE_TO_BUY_SERVICE = 104;// 已过期的服务去购买

    //请求code
    //获取班级列表页面
    public static final int REQUEST_CODE_GET_CLASS_LIST = 1001;
    //更改班级页面
    public static final int REQUEST_CODE_CHANGE_CLASS_PAGE = 1002;
    //班级详情页面
    public static final int REQUEST_CODE_CLASS_JUMP_DETAIL_PAGE = 1003;

    //资源中心服务详情页面
    public static final int REQUEST_CODE_CLASS_JUMP_BUY_SERVICE_PAGE = 1004;

    //视频讲解，在线作答结果页面
    public static final int REQUEST_CODE_VIDEO_EXPLAIN_ONLINE_ANSWER_RESUTL = 1007;

    //S视频讲解在线作答页面跳转到加班级
    public static final int REQUEST_CODE_VIDEO_EXPLAIN_ONLINE_JOIN_CLASS = 1010;


    //获取掌握状态
    public static final int REQUEST_CODE_GET_VIDEO_MASTER_STATE = 1012;

    //听说模考跳转播放不需要录音类型
    public static final int LISTEN_SPEAK_PLAY_TYPE_NO_NEED_RECORD = 0;
    //听说模考跳转播放需要录音类型
    public static final int LISTEN_SPEAK_PLAY_TYPE_NEED_RECORD = 1;


    //h5 页面跳转来源类型
    //视频讲解
    public static final int H5_JUMP_TYPE_VIDEO_EXPLAIN = 0;
    //在线作答
    public static final int H5_JUMP_TYPE_ONLINE_ANSWER = 1;
    //错题本
    public static final int H5_JUMP_TYPE_WRONG_QUESTION_BOOK = 2;


    public static final int H5_PAGE_TYPE_STUDY_RECORD = 11;
    public static final int H5_PAGE_TYPE_STUDY_DEFAULT = 12;


    //接收到推送下来的自定义消息
    public static final String BROADCAST_JPUSH_GET_CUSTOM_MSG = "BROADCAST_JPUSH_GET_CUSTOM_MSG";

    //接收到推送下来的通知
    public static final String BROADCAST_JPUSH_GET_NOTICE_MSG = "BROADCAST_JPUSH_GET_NOTICE_MSG";

    //接收到推送下来的通知
    public static final String BROADCAST_HOME_WORK_STATUS_CHANGE_MSG = "BROADCAST_HOME_WORK_STATUS_CHANGE_MSG";
    //互动教程作业完成状态后天刷新不及时，单独处理一下，（做延时处理）
    public static final String BROADCAST_HOME_WORK_STATUS_INTERACTIVE_TUTORIAL_FINASH = "BROADCAST_HOME_WORK_STATUS_INTERACTIVE_TUTORIAL_FINASH";

    public static final String BROADCAST_AUTONOMIC_STUDY_STATUS_CHANGE_MSG = "BROADCAST_AUTONOMIC_STUDY_STATUS_CHANGE_MSG";
    //获取服务刷新书桌
    public static final String BROADCAST_GET_SERVICE_REFRESH_BOOK_DESK = "BROADCAST_GET_SERVICE_REFRESH_BOOK_DESK";

    public static final String BROADCAST_SETBOOKS_HEAD = "BROADCAST_SETBOOKS_HEAD";

    public static final String BROADCAST_CLASS_CHANGE = "BROADCAST_CLASS_CHANGE";

    public static final String BROADCAST_HIDE_TAB_BAR = "BROADCAST_HIDE_TAB_BAR";

    public static final String BROADCAST_SHOW_TAB_BAR = "BROADCAST_SHOW_TAB_BAR";
    //为互动教程添加积分成功，发消息（作用：当是考试时，在加几分之后提示查看时间）
    public static final String BROADCAST_INTERACTIVE_TUTORIAL_ADD_POINT_OVER = "BROADCAST_INTERACTIVE_TUTORIAL_ADD_POINT_OVER";


    //网络连接变化类型
    //
    public static final int NETWORK_CHANGE_TYPE_WIFI_CONNECT_ONLY = 1;

    public static final int NETWORK_CHANGE_TYPE_MOBILE_CONNECT_ONLY = 2;

    public static final int NETWORK_CHANGE_TYPE_ALL_DISCONNECT = 3;

    //默认为：1：移动端；2：web(代理平台)
    public static final int TYPE_ID_OF_MOBILE = 1;
    //试用类型（5：移动端 6：渠道商赠送）
    public static final int TRLALTYPEID_OF_MOBILE = 5;

    public static final String UPLOAD_STATE_SUCCESS = "[阿里云上传成功]";

    public static final String UPLOAD_STATE_FAIL = "[阿里云上传失败]";


    public static final String DOWNLOAD_STATE_FAIL = "[下载失败]";


    int SCORE_STATUS_ONLINEANSWER_UNCOMPLETE = 17;
    //    听说模考作业状态(4:已批改完成 16:等待批改)
    public static final int SCORE_STATUS_UNCOMPLETE = 16;

    //听说主管批改中
    public static final int SCORE_STATUS_TSMK_UNCOMPLETE = 15;

    public static final int ERROR_CODE_RECORD_FILE_MISS = -1001;
    /**
     * 传给AddBookActivity的标识
     */
    public static final String CLOSE_ADDBOOKACTIVITY = "CLOSE_ADDBOOKACTIVITY";

}
